##############################################################################
# Aumni AMS — environment template
#
# Copy to .env and fill in. Never commit .env. On the production server this
# file must be chmod 600 and must live OUTSIDE public_html.
##############################################################################

APP_NAME="Aumni AMS"
APP_ENV=local
APP_KEY=base64:ewmPqtKb21uUubb4do22f84W0VWmwcRa5TbaQLCLwzM=
APP_DEBUG=true
APP_URL=http://localhost:8000
APP_TIMEZONE=Asia/Kolkata

APP_LOCALE=en
APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=en_IN

APP_MAINTENANCE_DRIVER=file

# Cost 12 is the production target. Lower it only in phpunit.xml, never here.
BCRYPT_ROUNDS=12

##############################################################################
# Logging — daily files with a 14-day window. On production set LOG_LEVEL=error.
##############################################################################

LOG_CHANNEL=daily
LOG_DAILY_DAYS=14
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

##############################################################################
# Database — MySQL 8.0 / MariaDB 10.6+, InnoDB, utf8mb4.
# On cPanel the username and database are prefixed with the account name,
# e.g. aumni_ams / aumni_amsuser.
##############################################################################

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=aumni_ams
DB_USERNAME=root
DB_PASSWORD=

##############################################################################
# Session — database driver so sessions carry user_id, which lets a master
# force-logout a disabled account immediately.
#
# SESSION_LIFETIME 480 = one working day.
# SESSION_SECURE_COOKIE must be true in production (HTTPS only).
##############################################################################

SESSION_DRIVER=database
SESSION_LIFETIME=480
SESSION_EXPIRE_ON_CLOSE=false
SESSION_ENCRYPT=true
SESSION_PATH=/
SESSION_DOMAIN=null
SESSION_SECURE_COOKIE=false
SESSION_HTTP_ONLY=true
SESSION_SAME_SITE=lax

##############################################################################
# Cache / queue / filesystem
#
# QUEUE_CONNECTION is intentionally 'sync': Aumni AMS runs no queue worker.
# Shared hosting forbids daemons, and nothing in the app defers work.
##############################################################################

CACHE_STORE=database
QUEUE_CONNECTION=sync
FILESYSTEM_DISK=local

##############################################################################
# Mail — used only for warranty expiry digests.
##############################################################################

MAIL_MAILER=log
MAIL_SCHEME=smtp
MAIL_HOST=127.0.0.1
MAIL_PORT=587
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_FROM_ADDRESS="ams@aumnitechworks.com"
MAIL_FROM_NAME="${APP_NAME}"

##############################################################################
# Vite
##############################################################################

VITE_APP_NAME="${APP_NAME}"
